package com.bobi.tfca.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bobi.tfca.dao.MenuDao;
import com.bobi.tfca.model.entity.MenuEntity;
import com.bobi.tfca.service.MenuService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 菜单服务层实现
 * @author 李文发
 * @date 2024/4/3
 */
@Service
@Slf4j
public class MenuServiceImpl extends ServiceImpl<MenuDao, MenuEntity> implements MenuService {

    @Autowired
    private MenuDao menuDao;

    @Override
    public List<String> getRoleMenus(Integer roleId) {
        List<String> result = menuDao.listRolePageMenu(roleId);
        return result;
    }
}
